﻿using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace AppSocketModel
{
    /// <summary>
    /// 车辆信息
    /// </summary>
    [BsonIgnoreExtraElements]
    public class VehicleRequestDto
    {
        /// <summary>
        /// 账户Id
        /// </summary>
        [Required(ErrorMessage = "账户Id")]
        public string AccountId { set; get; }

        /// <summary>
        /// 车牌号
        /// </summary> 
        public string VehicleNo { set; get; }

        /// <summary>
        /// GPS-IMEI
        /// </summary>
        [Required(ErrorMessage = "GPS-IMEI")]
        public string IMEI { set; get; }

        /// <summary>
        /// 车型
        /// </summary>
        [Required(ErrorMessage = "车型")]
        public VehicleType vehicleType { set; get; }

        /// <summary>
        /// 车型(米)
        /// </summary>
        public float VehicleTypeCode { set; get; }

        /// <summary>
        /// 司机电话
        /// </summary>
        public string DriverPhone { set; get; }

        /// <summary>
        ///司机名称 
        /// </summary>
        public string DriverName { set; get; }



        /// <summary>
        /// 排序编号
        /// </summary>
        public int SortNo { set; get; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { set; get; }
    }
}
